<template>
  <div id="app">
    <el-container>
      <el-header>
        <myheader></myheader>
        </el-header>
      <el-main>
        <!-- main主页中 应该写 路由出口！ -->
        <router-view></router-view>
      </el-main>
    </el-container>
   <!--  <div id="nav">
      <router-link to="/">主页</router-link> |
      <router-link to="/about">关联</router-link> |
      <router-link to="/hellokitty">哈喽尅提</router-link> |  </div>-->
      
   
    <!-- 路由出口，用来展示，路由显示的页面！ -->
    <!-- <router-view/> -->
  </div>
</template>
<script>
//1.声子
import myheader from '@/components/head.vue'
import MyList from '@/views/mylist/MyList.vue'
export default {
  //2.挂子
  components:{
    myheader,
    MyList
  }
}
</script>
<style>
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 100%;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 100%;
  }
</style>